package com.ruoyi.edu.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 课程科目业务对象 edu_subject
 *
 * @author ruoyi
 * @date 2022-08-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class EduSubjectBo extends TreeEntity<EduSubjectBo> {

    /**
     * 课程类别ID
     */
    private String id;

    /**
     * 类别名称
     */
    @NotBlank(message = "类别名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 排序字段
     */
    private String sort;
    private Long parentId;


}
